Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 19: Controlling Shading

../ch19/19fig24a.gif
Figure 19.24a

A smooth-shaded half column using a crease angle. Compare with Figure 19.24b.

19fig24a.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Shape {
    appearance Appearance {
        material Material { }
    }
    geometry IndexedFaceSet {
        creaseAngle 1.57
        coord Coordinate {
            point [
                -2.00  3.00 0.00,
                -2.00 -3.00 0.00,
                -1.41  3.00 1.41,
                -1.41 -3.00 1.41,
                 0.00  3.00 2.00,
                 0.00 -3.00 2.00,
                 1.41  3.00 1.41,
                 1.41 -3.00 1.41,
                 2.00  3.00 0.00,
                 2.00 -3.00 0.00,
            ]
        }
        coordIndex [
            0, 1, 3, 2,   -1,
            2, 3, 5, 4,   -1,
            4, 5, 7, 6,   -1,
            6, 7, 9, 8,   -1,
        ]
    }
}